package com.imooc.distributedemo.resume.coll;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Vector;

public class ArrayListAndVectorAndLinkedListDemo {

    public static void main(String[] args) {

        List<String> list = new ArrayList<>();
        System.out.println(list.size());

        List<String> theArrayList = new ArrayList<>();
        List<String> theLinkedList = new LinkedList<>();
        Vector<String> theVector = new Vector<>();
        for (int i = 0; i < 15; i++) {
            theVector.add("-"+i);
            theArrayList.add("*"+i);
        }
        int lenOfTheVector = theVector.capacity();

        System.out.println(theArrayList);
    }

}
